package com.wesley.framework;


import com.wesley.framework.protocol.dubbo.DubboProtocol;

public class ProtocolFactory {

    public static Protocol getProtocol() {
        return new DubboProtocol();
        /*
        String name = System.getProperty("protocolName");
        if (name == null || name.equals("")) {
            name = "http";
        }
        switch (name) {
            case "http":
//                return new HttpProtocol();
            case "dubbo":
                return new DubboProtocol();
            default:
                break;
        }
        return new DubboProtocol();

         */

    }
}
